import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import formRules from '@/utils/formRules'
import './permission';
// import './plugins/element.js';

Vue.config.productionTip = false;
Vue.mixin({
  data() {
    return {
      formRules
    }
  }
})
Vue.prototype.$selfConfirm = function (handler, msg, data) {
  this.$confirm(msg, '提示', {
    confirmButtonText: '确定',
    cancelButtonText: '取消',
    type: 'warning'
  }).then(() => {
    handler(data);
  })
}

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app');
